test = 'm'

if test=='m':
	from Djoser import *

	class MyApplication(DjApplication):
		def layout(self,window):
			window.title = 'Welcome'
			
			window.label('Hello, Djoser')
			window.button('Click me',lambda:alert('Hello'))
			window.add_all()

	m = MyApplication()
	m.run()


# In Tkinter:
elif test=='tk':
	from Tkinter import *
	import tkMessageBox
	
	class MyApplication():
		def __init__(self, root):
			root.title('Welcome')
			
			Label(root, text='Hello, Tk').pack(side=LEFT)
			Button(root, text='Click me', command=lambda: tkMessageBox.showinfo(message='Hello')).pack(side=LEFT)
			
	root = Tk()
	app = MyApplication(root)
	root.mainloop()
	
elif test=='debug':
	from Djoser import *
	from Djoser.djtools import djprompt
	
	class MyApplication(DjApplication):
		def layout(self,window):
			window.title = 'Welcome'
			
			window.label('Hello, Debug')
			window.button('Click me',lambda:alert('Hello'))
			
			window.add_all()

	m = MyApplication()
	prompt = djprompt.DjPrompt(reference = m)
	m.run()

